package com.tianji.learning.service;

import com.tianji.api.dto.leanring.LearningLessonDTO;
import com.tianji.learning.domain.dto.LearningRecordFormDTO;
import com.tianji.learning.domain.po.LearningRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 学习记录表 服务类
 * </p>
 *
 * @author yangyu
 * @since 2023-07-22
 */
public interface ILearningRecordService extends IService<LearningRecord> {

    /**
     * 1.查询指定课程的学习记录 - 供course课程微服务远程调用
     * @param courseId  课程id
     * @return  学习课表进度信息
     */
    LearningLessonDTO queryLearningRecordByCourse(Long courseId);


    /**
     * 2.提交学习记录
     * @param recordDTO   学习记录DTO
     */
    void addLearningRecord(LearningRecordFormDTO recordDTO);


}
